package data.visu.structures;

import controls.visu.BandControl;

/**
 * @author Charles Perin
 * 29 mars 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 *
 */
public class FrameValueAndStringBandControl {
	
	private int frame;
	private ValueAndString value;
	private BandControl bandControl;
	
	public FrameValueAndStringBandControl(int frame, ValueAndString value, BandControl bandControl){
		setFrame(frame);
		setValue(value);
		setBandControl(bandControl);
	}
	
	@Override
	public String toString(){
		if(bandControl!=null)return "frame="+frame+", value="+value+", bandControl="+bandControl.getName();
		else return "frame="+frame+", value="+value+", bandControl=null";
	}

	public void setFrame(int frame) {
		this.frame = frame;
	}

	public int getFrame() {
		return frame;
	}

	public void setValue(ValueAndString value) {
		this.value = value;
	}

	public ValueAndString getValue() {
		return value;
	}

	public void setBandControl(BandControl bandControl) {
		this.bandControl = bandControl;
	}

	public BandControl getBandControl() {
		return bandControl;
	}
}
